<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
            精灵图（雪碧图）
        */
        div {
            width: 36px;
            height: 42px;
            /* border: solid; */
            background: url(./jd.png) no-repeat;
            display: inline-block;
            /* float: left; */
        }
        div:nth-child(1) {
            background-position: 0 -192px;
        }
        div:nth-child(2) {
            background-position: -41px -192px;
        }
        div:nth-child(3) {
            background-position: -82px -192px;
        }
        div:nth-child(4) {
            background-position: -123px -192px;
        }
        ul, a{
            list-style: none;
            text-decoration: none;
            color: black;
            padding: 0;
        }
        ul li{
            display: inline-block;
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <span style="clear: both;display: block;"></span>
    <ul>
        <li>
            <a href="">新闻</a>
        </li>
        <li>
            <a href="">体育</a>
        </li>
        <li>
            <a href="">娱乐</a>
        </li>
        <li>
            <a href="">科技</a>
        </li>
    </ul>
</body>
</html>